package org.example.learn;

import com.sun.deploy.security.EnhancedJarVerifier;

/**
 *
 */
public class MetaspaceOOMTest {
    static class OOMTest{

    }

    public static void main(String[] args) {
        //模拟多少次之后产生异常
        int i=0;
        try{
            while (true){
                i++;
            }
        }catch (Throwable e){
            System.out.println("*********{}后生成了异常"+i);
            e.printStackTrace();
        }
    }
}
